package today.rocky.memory.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * @author Rocky
 * @version 1.0
 * @date 2020/5/23 19:13
 * @description
 */
@Data
public class MemoryParam implements Serializable {
	@NotNull(message = "用户id不能为空")
	private Long userId;
	@NotNull(message = "不能没有时间")
	@JsonFormat(pattern="yyyy-MM-dd")
	private LocalDate date;
}
